package edu.whu.notepal.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * @author 陈磊
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class User implements Serializable {
    private Long id;

    private String name;

    private String email;

    private String password;

    private String icon;

    private String sex;

    private LocalDate birthday;

    private String hobbies;

    private String major;

    private String selfDescription;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}